import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.JFrame;
import java.io.*;


public class FrameImageEx extends JFrame {

	Image image;
	int x, y;

	public FrameImageEx() {
		super("프레임이미지 테스트");

		image = Toolkit.getDefaultToolkit()
				.getImage("images/yutpan.gif");

		x = 500;
		y = 500;
		


		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(200, 200, 500, 500);
		setVisible(true);
		

	}

	public void paint(Graphics g) {
		g.drawImage(image, 10, 100, x, y-150, this);

	}


	public static void main(String[] args){
		new FrameImageEx();
	}
}
